# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer:
pkgname=libeatmydata
pkgver=131
pkgrel=7
pkgdesc="LD_PRELOAD library and utility that disables all forms of writing data safely to disk"
url="https://www.flamingspork.com/projects/libeatmydata/"
arch="all"
license="GPL-3.0-or-later"
checkdepends="bash strace"
source="https://github.com/stewartsmith/libeatmydata/releases/download/v$pkgver/libeatmydata-$pkgver.tar.gz
	lfs64.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check-debug
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
064417dc085cb82e4baf1d160fcde2c6e0d9fed60e5c595799630b030053c373d888853055894c127c5b384be9204e8bbb251877651811b5fc5cdca8ffd9cf42  libeatmydata-131.tar.gz
e23d50193673d568442b9562cd61817710787b9cbd4b7c6bf30438b58bf421c1505a745147d0d901fe5c2e188cf36d9ffabd5dde97d860c5436fc6e7463d1458  lfs64.patch
"
